package com.kgc.service.impl;

import com.kgc.dao.JudgeQuestionDao;
import com.kgc.entity.JudgeQuestion;
import com.kgc.service.JudgeQuestionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Bankjudgequestion)表服务实现类
 *
 * @author unicorn
 * @since 2020-05-23 19:59:26
 */
@Service("judgeQuestionService")
public class JudgeQuestionServiceImpl implements JudgeQuestionService {
    @Resource
    private JudgeQuestionDao judgeQuestionDao;

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    @Override
    public JudgeQuestion queryById(Integer id) {
        return this.judgeQuestionDao.queryById(id);
    }

    @Override
    public List<JudgeQuestion> queryJudgeQuestion() {
        return this.judgeQuestionDao.queryJudgeQuestion();
    }

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit 查询条数
     * @return 对象列表
     */
    @Override
    public List<JudgeQuestion> queryAllByLimit(int offset, int limit) {
        return this.judgeQuestionDao.queryAllByLimit(offset, limit);
    }

    @Override
    public Integer insert(JudgeQuestion judgeQuestion) {
        return this.judgeQuestionDao.insert(judgeQuestion);
    }

    @Override
    public Integer update(JudgeQuestion judgeQuestion) {
        return this.judgeQuestionDao.update(judgeQuestion);
    }

    @Override
    public Integer deleteById(Integer id) {
        return this.judgeQuestionDao.deleteById(id);
    }


}